import request from '@/utils/request'

// 查询设备电压等级列表
export function listVoltageLevel(query) {
  return request({
    url: '/substation/voltageLevel/list',
    method: 'get',
    params: query
  })
}

// 查询设备电压等级详细
export function getVoltageLevel(id) {
  return request({
    url: '/substation/voltageLevel/' + id,
    method: 'get'
  })
}

// 新增设备电压等级
export function addVoltageLevel(data) {
  return request({
    url: '/substation/voltageLevel',
    method: 'post',
    data: data
  })
}

// 修改设备电压等级
export function updateVoltageLevel(data) {
  return request({
    url: '/substation/voltageLevel',
    method: 'put',
    data: data
  })
}

// 删除设备电压等级
export function delVoltageLevel(id) {
  return request({
    url: '/substation/voltageLevel/' + id,
    method: 'delete'
  })
}
